while (property_name)
{
const GtkStyleProperty *node;
- PropertyData *prop;
gchar *error = NULL;
- GValue *val = NULL;
-
- node = _gtk_style_property_lookup (property_name);
+ const GValue *val;
+ val = _gtk_style_properties_peek_property (props, property_name, state, &node);
if (!node)
- {
- g_warning ("Style property \"%s\" is not registered", property_name);
- break;
- }
-
- prop = g_hash_table_lookup (priv->properties, node->pspec);
-
- if (prop)
- val = property_data_match_state (prop, state);
-
- if (val &&
- !style_properties_resolve_type (props, node, val))
- val = NULL;
+ break;
if (val)
{